/**
 *    Copyright 2012 Geensoft S.A.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/
package ar.com.greensoft.neo.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.validation.constraints.Size;

import org.hibernate.envers.Audited;
import org.hibernate.validator.constraints.Email;

import ar.com.greensoft.neo.model.constraint.CUIT;

/**
 * Simple JavaBean domain object adds a name property to {@link NamedEntity}.
 * 
 *  
 * @author Jorge E. Villaverde
 * @since 05/06/2011
 * @version 1.0.0
 */
@Entity
@Table(name="persona")
@Inheritance(strategy=InheritanceType.JOINED)
@Audited
public abstract class Persona extends BaseEntity { 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@CUIT
	@Column
	private String cuip;

    @Size(max=15)
	private String telefono1;
	
	@Size(max=15)
	private String telefono2;	
    
	@Email
	private String email;

	public String getCuip() {
		return cuip;
	}

	public void setCuip(String cuip) {
		this.cuip = cuip;
	}

	public String getTelefono1() {
		return telefono1;
	}

	public void setTelefono1(String telefono1) {
		this.telefono1 = telefono1;
	}

	public String getTelefono2() {
		return telefono2;
	}

	public void setTelefono2(String telefono2) {
		this.telefono2 = telefono2;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
}
